package com.originskyseed.platform.log.service;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.core.base.BasePage;
import com.originskyseed.platform.log.model.HomePageCache;

/**
 * Service接口类（osi_home_page_cache）
 * 
 * @author tang
 */
public interface IHomePageCacheService {

	/**
	 * 插入记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(HomePageCache record) throws Exception;

	/**
	 * 插入记录
	 *
	 * @param HomePageCacheList
	 * @return
	 * @throws Exception
	 */
	public int batchInsertByList(List<HomePageCache> HomePageCacheList) throws Exception;

	/**
	 * 查询记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public HomePageCache selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<HomePageCache> selectList(HomePageCache record) throws Exception;

	/**
	 * 分页查询列表
	 * 
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<HomePageCache> selectListByPage(Map<String, Object> params, BasePage<HomePageCache> page) throws Exception;

	/**
	 * 删除指定天数前的
	 * 
	 * @param day
	 * @param tenantCode
	 * @return
	 * @throws Exception
	 */
	public Boolean deleteHomePageCache(String day, String tenantCode) throws Exception;


	/**
	 * 删除
	 * @return
	 * @throws Exception
	 */
	public Boolean deleteHomePageCache() throws Exception;
}